<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue指令</title>
    <script src="/js/vue-2.7.9-dev.js"></script>
    <style>
        img{
            width: 500px;
        }
    </style>
    
</head>
<body>
    <div id="app">
        <img v-bind:src="url"/>
        <div v-text="content"></div>
        <!-- 慎用 xss攻击 -->
        <div v-html="content"></div>
        <input type="text" v-model="name" />
        <input type="checkbox" name="" v-model="check">
        <input type="radio" name="r1">
        <input type="radio" name="r1">
        <input type="radio" name="r1">
    </div>

    <script>
        let vm = new Vue({
        // el 值是选择器, 将对应的原则使用vue管理
            el:"#app",
            data:{
                msg:"hello 晋中理工",
                url:"./img/404.png",
                content:"<h1>标题</h1>",
                name :"",
                check:""
            },
        })
        console.log(vm);
    </script>
</body>
</html>